import Demo1.ProtectedInPackage;

public class Privated {
    private int a = 1;
    public static void main(String[] args) {
        Privated privated = new Privated();
        System.out.println(privated.a);
    }
}
class Test{
    public static void main(String[] args) {
        Privated privated = new Privated();
//        System.out.println(privated.a);//这里不能通过编译是因为private的修饰限定
    }
}
